package com.wowo.aoon;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("kgirl")
public class KoreaGirl implements Girl {
    @Value("骚猪")
    private String name;
    @Value("28")
    private int age;
    @Override
    public String getName() {
        return name;
    }

    @Override
    public int getAge() {
        return age;
    }

    @Override
    public void Kiss() {
        System.out.println("KKKKKKKKKKKKKKKK");
    }

    @Override
    public String toString() {
        return "KoreaGirl{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
